<?php /* Smarty version Smarty3-SVN$Rev: 3286 $, created on 2011-04-11 11:22:21
         compiled from "/home3/xuanyano/public_html/geek-zoo.com/site/admin/Templates/attribute_list.html" */ ?>
<?php /*%%SmartyHeaderCode:3054271374da273ede4b432-21688793%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6023694d245bc2a1a19332b5fba872550fea55ad' => 
    array (
      0 => '/home3/xuanyano/public_html/geek-zoo.com/site/admin/Templates/attribute_list.html',
      1 => 1288594637,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3054271374da273ede4b432-21688793',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("lib/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<!--main-->
<div id="main">
  <?php $_template = new Smarty_Internal_Template("lib/history.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
	<div class="breadcrumb"><a href="?url=index">首页</a> <img src="images/i.png" class="ico"> <a href="?url=model">模型</a> <img src="images/i.png" class="ico"> <a href="javascript://"><?php echo $_smarty_tpl->getVariable('model_info')->value['name'];?>
的字段管理</a> </div>
	<div class="m10"><input name="" type="button" class="add" onclick=window.location.href='?url=model/create&action=attribute&mid=<?php echo $_smarty_tpl->getVariable('model_info')->value['id'];?>
'></div>
	<div class="container m10">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<thead>
	<tr>
		<th>字段名称：<img src="images/i.png" class="down"></th>
		<th>字段属性</th>
		<th>字段排序</th>
		<th>操作</th>
	</tr>
	</thead>
	<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('data')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value){
?>
	<tr>
		<td><?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['val']->value['type'];?>
</td>
		<td><?php echo $_smarty_tpl->tpl_vars['val']->value['view_order'];?>
</td>
		<td><a href="?url=model/update&action=attribute&id=<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
"><img src="images/i.png" class="edit"></a> <a href="?url=model/delete&action=attribute&id=<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
" class="delete"><img src="images/i.png" class="del"></a></td>
	</tr>
	<?php }} ?>
</table>
	</div>
</div>
<!--/main-->
<?php $_template = new Smarty_Internal_Template("lib/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
